<?php
/**
 * POD
 *
 * ${license}
 *
 * @category	POD
 * @package		POD_Office_Attribute
 * @copyright	${copyright}
 * @license		${license}
 * @version		${$version}
 * @author		Ziv Perry (http://zivperry.com)
 */


class POD_Office_Attribute_Heading extends POD_Office_Attribute {
	
	/**
	 * @param int $attr
	 * @return POD_Office_Attribute_Heading
	 */
	public function setOutlineLevel($attr) {
		// TODO: validate $attr is positive integer
		$this['text:outline-level'] = $attr;
		return $this;
	}

	/**
	 * @param bool $attr
	 * @return POD_Office_Attribute_Heading
	 */
	public function setRestartNumbering($attr) {
		// TODO: validate $attr is boolean
		$this['text:restart-numbering'] = $attr;
		return $this;
	}
	
	/**
	 * @param int $attr
	 * @return POD_Office_Attribute_Heading
	 */
	public function setStartValue($attr) {
		// TODO: validate $attr is non negative integer
		$this['text:start-value'] = $attr;
		return $this;
	}
}